//
//  EXForBlock.m
//  EXKeyWords
//
//  Created by Jiafan on 12/14/15.
//  Copyright © 2015 Jiafan. All rights reserved.
//

#import "EXForBlock.h"

@implementation EXForBlock
+ (void)function{
    
    NSMutableArray *array = [@[@"asdf",@"badsaf",@"casdf"] mutableCopy];
    void (^Sum)(NSString *) = ^(NSString *item){
        NSAssert(item != nil, @"添加对象为空");
        [array addObject:item];
        
        
    };
    Sum(@"haha");
    NSLog(@"%@",array);
    
    
    
    NSString *title = @"原始数据";
    void (^Read)()=^{
        NSLog(@"read title in block Read:%@",title);
    };
    title = @"新值";
    Read();
    
    NSLog(@"after block Read title:%@",title);
}

- (void)functionA{
    int
}
- (CGFloat)sum:(CGFloat)x {
    
}

@end
